package com.lvmama.controller.rhino.log;

import com.github.pagehelper.PageInfo;
import com.lvmama.pojo.dto.rhino.log.LogConditionVO;
import com.lvmama.pojo.entity.rhino.log.Log;
import com.lvmama.service.system.LogService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @param
 * @Title:
 * @Author:wangpeng
 * @Description: TODO(这里用一句话描述这个方法的作用)
 * @return
 * @throws
 */
@RestController
@RequestMapping(value = "log")
@Slf4j
public class LogController {
	@Autowired
	private LogService  service;

	@PostMapping(value = "findList")
	public PageInfo<Log> findList(@RequestBody LogConditionVO params){
		PageInfo<Log> result = null;
		try {
			result = service.findList(params);
		}catch (Exception e){
			log.error("findList error",e.getMessage(),e);
		}
		return result;
	}
}
